package com.guli.mall.pms.feign;

import com.guli.common.to.SpuEsTo;
import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/*
 * @Author 罗
 * @date 2020/10/9 - 7:06 下午
 */
@FeignClient(name="search-service")
public interface SearchServiceFeignClient {

    @PostMapping("product/save")
    public R saveToProduct(@RequestBody List<SpuEsTo> spuEsToList);
}
